#include "func.h"

int my_strcmp(const char *s, const char *p)
{
    while((*s != '\0')&&(*p != '\0')&&(*s == *p))
    {
        s++;
        p++;
    }
    if(*s == *p)
    {
        return 0;
    }
    else
    {
        return *s-*p;
    }
}  